/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mercury.Entity.SystemModels;

namespace Mercury.Entity.DomainModels
{
    [Entity(TableCnName = "配料区管理",TableName = "IngredientsArea",DetailTable =  new Type[] { typeof(IngredientsAreaMove)},DetailTableCnName = "料箱移动记录")]
    public partial class IngredientsArea:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; }

       /// <summary>
       ///区域
       /// </summary>
       [Display(Name ="区域")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Region { get; set; }

       /// <summary>
       ///区域编号
       /// </summary>
       [Display(Name ="区域编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string RegionNo { get; set; }

       /// <summary>
       ///当前配料台物料号
       /// </summary>
       [Display(Name ="当前配料台物料号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string BatchingMaterials { get; set; }

       /// <summary>
       ///当前配料台料箱号
       /// </summary>
       [Display(Name ="当前配料台料箱号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string BatchingMaterial { get; set; }

       /// <summary>
       ///当前配料台物料批号
       /// </summary>
       [Display(Name ="当前配料台物料批号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string BatchingBatch { get; set; }

       /// <summary>
       ///当前配料台剩余重量
       /// </summary>
       [Display(Name ="当前配料台剩余重量")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? BatchingRemainingWeight { get; set; }

       /// <summary>
       ///配料台状态
       /// </summary>
       [Display(Name ="配料台状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? BatchingState { get; set; }

       /// <summary>
       ///备料区料物号
       /// </summary>
       [Display(Name ="备料区料物号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialPreparationMaterials { get; set; }

       /// <summary>
       ///备料区料箱号
       /// </summary>
       [Display(Name ="备料区料箱号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialPreparationMaterial { get; set; }

       /// <summary>
       ///备料区物料批号
       /// </summary>
       [Display(Name ="备料区物料批号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialPreparationBatch { get; set; }

       /// <summary>
       ///备料区物料重量
       /// </summary>
       [Display(Name ="备料区物料重量")]
       [DisplayFormat(DataFormatString="18,4")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? MaterialPreparationWeight { get; set; }

       /// <summary>
       ///备料区域状态
       /// </summary>
       [Display(Name ="备料区域状态")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialPreparationType { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? State { get; set; }

       [Display(Name ="料箱移动记录")]
       [ForeignKey("IngredientsAreaId")]
       public List<IngredientsAreaMove> IngredientsAreaMove { get; set; }

    }
}